#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QToolButton>
#include <QTreeView>
#include <QStandardItemModel>
#include <QSplitter>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void changeEvent(QEvent *event);

    void resizeEvent(QResizeEvent *re);
private:
    Ui::MainWindow *ui;

    QHBoxLayout *topLayout,*mainLayout,*mainLeftLayout,*mainRightLayout;
    QVBoxLayout *vLayout;

    QToolButton *connBtn;
    QToolButton *selectBtn;

    QTreeView *treeView;
    QStandardItemModel *model;

    QSplitter *splitter;
};
#endif // MAINWINDOW_H
